package com.zzty.train.serviceImpl;


import com.zzty.train.dao.SelfExamDao;
import com.zzty.train.entity.SelfExam;
import com.zzty.train.service.SelfExamService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SelfExamServiceImpl implements SelfExamService {
    @Autowired
    SelfExamDao selfExamDao;

    @Override
    public SelfExam checkByDateAndClazzId(SelfExam selfExam) {
        SelfExam selfExam1=selfExamDao.checkByDateAndClazzId(selfExam);
        return  selfExam1;
    }

    @Override
    public Integer insertTeamExam(SelfExam selfExam) {
        Integer count=selfExamDao.insertSelfExam(selfExam);
        return count;
    }
}
